
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8" />
    <title>ambient.Profile.close_nc &#8212; Texas A&amp;M Oil spill / Outfall Calculator 2.1.0 documentation</title>
    <link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
    <script src="../../_static/jquery.js"></script>
    <script src="../../_static/underscore.js"></script>
    <script src="../../_static/doctools.js"></script>
    <script src="../../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="ambient.Profile.extend_profile_deeper" href="ambient.Profile.extend_profile_deeper.html" />
    <link rel="prev" title="ambient.Profile.buoyancy_frequency" href="ambient.Profile.buoyancy_frequency.html" />
   
  <link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="ambient-profile-close-nc">
<h1>ambient.Profile.close_nc<a class="headerlink" href="#ambient-profile-close-nc" title="Permalink to this headline">¶</a></h1>
<dl class="method">
<dt id="ambient.Profile.close_nc">
<code class="sig-prename descclassname">Profile.</code><code class="sig-name descname">close_nc</code><span class="sig-paren">(</span><em class="sig-param">self</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/ambient.html#Profile.close_nc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ambient.Profile.close_nc" title="Permalink to this definition">¶</a></dt>
<dd><p>Close the netCDF dataset</p>
<p>Because the raw profile data are stored in a netCDF file, a pipe is 
open to the file source whenever this attribute of the object is in 
use.  Once the interpolation function is built with the complete 
dataset needed for a TAMOC simulation (e.g., once calls to <cite>append</cite>
are not longer needed), the netCDF dataset does not need to remain 
available.  This method closes the netCDF dataset file and tells
the <cite>Profile</cite> object that the file is closed.  All methods that do not
directly read or write data to the netCDF file will continue to work.
If the object is no longer used, the Python garbage collector will
eventually find it and remove it from memory.</p>
<p class="rubric">Notes</p>
<p>Especially during code development, scrips with open netCDF files can
crash, and this method will not be called.  In that case, it is
likely necessary to close Python and restart a new session so that 
all file pointers can be flushed.</p>
</dd></dl>

</div>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../../index.html">Texas A&M Oil spill / Outfall Calculator</a></h1>








<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../../user_manual.html">TAMOC User Manual</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../unit_tests.html">Unit Tests</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary.html">Glossary</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../bugs.html">Reporting Bugs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Read Me File</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../release.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../license.html">License</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="../../index.html">Documentation overview</a><ul>
  <li><a href="../../user_manual.html">TAMOC User Manual</a><ul>
  <li><a href="../../modules/ambient.html">Overview of Ambient Module</a><ul>
  <li><a href="ambient.Profile.html">ambient.Profile</a><ul>
      <li>Previous: <a href="ambient.Profile.buoyancy_frequency.html" title="previous chapter">ambient.Profile.buoyancy_frequency</a></li>
      <li>Next: <a href="ambient.Profile.extend_profile_deeper.html" title="next chapter">ambient.Profile.extend_profile_deeper</a></li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" />
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>$('#searchbox').show(0);</script>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2020, Scott A. Socolofsky.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.4</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
      
      |
      <a href="../../_sources/autodoc/ambient/ambient.Profile.close_nc.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>